package com.cherish.pattern.proxy.dynamicproxy.myproxy;


import com.cherish.pattern.proxy.model.Girl;

import java.lang.reflect.Method;

/**
 * @Classname TestMyMeiPo
 * @Date 2019/4/2 23:12
 * @Author admin
 * @Description TODO
 */
public class TestMyMeiPo {

    public static void main(String[] args) {
        try {
            Object obj = new MyMeiPo().getInstance(new Girl());
            Method method = obj.getClass().getMethod("findLove", null);
            method.invoke(obj);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
